data checks for login in