Fixes login form when displaying errors.