Added catched erros. Input exception not working