adds user model with password encryption