Update user model and add secure password processing