edited user model with password authertification