Fixed some AuthenticationFormFactory issues