Login validation working with error display.