Implementation of login code and mongo

Implementation of mongodb User model usage.
Use of pbkdf2 for login