Fix for loggedin