Fixes multiple local variables in get_auth

Moves message strings to a msg dict to minimize local variables