added registration support
added tenant support (login and base structures)