Form validation and storing data in mysql db using PHP file