Added validations for name and photos