Added error checking on user input for handlers directory