Check user input for mistakes and do proper exception handling