refactored functions in the login and placed ui's on center screen.