Alert Changes, Database Insertion

Changed the alerts from Javascripts to php, Database insertion of new
users seems to work correctly.