One class to control registration, logging in and authorization