Log in check issue fixed

small fix for login check