fixing database contraint error triggered on user creation