added validation on user input for cell locations