added basic register functionality

stores user email and password in database when click register, and logs
user in