Fixed timestamp comparison in fixUserRegistration