hooked the database up to the form and added more security check to form, involving checking database to see if username and email had already been used