Validation after submitting only