Add secure password functionality to user model