Fixed the user object in the photo actions in Users controller