UC-1717: Login rest api improvement

-make it exdentable to any Representable subclass