Added error message when key and password are not correct.