If the current user is set return error when not logged in.