Add password functions to User model