fixed bug where allowing post even when field is empty