fixed bug with creating user

updated database references for saving user information