Added a user search function in the UserService and refactored the Login function with tips from resharper.