Adding credential check to login screen.