Odd behaviour when validation failed fixed