added mongoose logic for user with encrypted password.
lots of this was taken from obiechat and here:
http://blog.mongodb.org/post/32866457221/password-authentication-with-mongoose-part-1