REFACTOR: Using the session for form field errors instead of a 'magic' global variable