input validation + cancel button
Added offline storage