added photo and validator for forms