Update login form to new template and error handling methods