added check for user details on login screen