added login and setup user restful apis