Using REST plugin for login
Implementing API for user login with sample example