The backend should send response to the frontend if the authentication failed or not so that the user can know what went wrong