#13 partial implementation for registration with login on success