Added password authentication to User model