Added code to register new user on initial login