updated invitation handler so that users without accounts get email and can sign up and show pages don't break