Filter out the empty form input to null