Using the correct sql
Validating form inputs