modified the way users are added to the database