Completed login validation with WTForms.