Fixed login to display error messages same page.