Rough code additions on input form

Successfully storing inputs, previous and next buttons work but without
boundary checking (don't do previous at beginning)