Solved bug check user

Solved bug for checking user logged in.