Tweaked user registration so that it logs the user in automatically after registration