hacked validation to work with bootstrap