Made changes to the login process. Currently, once the user logs in, it shows Logged in as: xxxx. Failed case not handled because I dont knowwhat is supposed to happen. JSON response is handled correctly