fixing beforeCasting - Fixing form validation template -