Showing error message when the credentials are not valid