Abstract Modal component, applied to Login and User Privileges

Why is the function still here if you made the method ?