validation working but styles not good