Added login functionality to login screen