Minor changes

Implemented rest api call for login
Some other unwanted code removed