Implemented photo validation.