Added form validation for student's data and password.