added basic client-side validation and created Back button feature