Make sure regid is created before logging in