modified validation to use bootstrap styles