Included input validation if space is not occupied.