add remote login and data retreival API