position error messsage closer to the place the error occurrs, also standardize colors