Fix user creation with password encryption