Fixed Not logged in issue