alert message showing a warning for invalid credential