[SECURITY] Add hook to implement login protection methods