Added input check
Added footer