Changing return value of a login route

Changing return value of a login route