Add exception for incorrect input