data typing causes error when creating a new user