Display error message if key or password is invalid