Hooked up the user login / registration with logging