details form validates before submitting