error handling for missing params from user