Added validation along with css