added user login logic
Merge branch 'master' into user_login