Add css styles for form validation.
Update query to implement form validation.