restful services for login logout