User model added password methods and login, authenticate, logout methods.