Bug fix for user creation