Log user in automatically after registering