error message placement corrected