Doing the user login and authentication