Form validation logic, styles