Function name added for user
Bugs fixed and login tested
Merge branch 'mdm-scratch' of github.com:WSO2Mobile/mdm into mdm-scratch