add login and getClass restful api calls