Applying user object to wrong scope broke page