Fixing bugs in show validation error in client side and defining css rules for validation messages