Client side validation working. Form submit redirection to index working again