Login and registration with unit tests

Login and registration with unit tests