added ability to register new user