Prevent error on empty form fields