Fixes some bugs with add_key page
Update imports for new wtforms