Added form validation for sign in, register and password recovery.