Fixed #15198 -- set request on AuthenticationForm POST

Added tests. Thanks to Ciantic for the report and initial patch, claudep for the extra work.