Added functionality to login screen.