move warning logic into form alter, add css for warning