Updated login form to display errors