added footer message, flash message, and error handling for airmiles