space validation working