Missing validation added to validate the spaces