fix bug in required fields ( closed #1 )