Added error message when authentication fails