Form check function improvement
Small fix