Consistency between login and regsiter