registration form adding to database via ajax, needs validation and security