updated files to register users before letting them sign in. Need a feature to send out emails