Added form validation to edit picture page