Basic sign up works so user can be added to database, but error when trying to login with that user