Added user authorization

Existing user can login with name-password, if user not exists new user
with name-password will be created in database.
Add login.js