ticket:5 add check for empty photo path
Merge branch 't5_form_auth'