check if user is loggedin in login function of outsider controller