Added following model to User. Implemented password checking.