fixed weird error where could nto register user with a fresh db