working authservice, added rest-method