model has methods to authenticate user and encrypted pass