Implemented Login API to store user details to server.