check in login functionality