Added support for getting login credentials using REST api