updated to have more friendly login messages.