photo controller require login bug