register users after login