edit to match updated book
match spec to flash message
fix authenticate params