register a signal that caches the user's credentials on login