Implments password hashing

* edited User model to store and check user passwords
* edited views to use hashing