Fixed form validation affecting logout