Using form validation in authentication panel