modified register page to send to db (not working)