Refactor StrictAuthenticationForm to allow for easier reuse in other forms