# I try to validate login message but password is correct it also reflect 2nd condition also

**URL:** <https://community.postman.com/t/i-try-to-validate-login-message-but-password-is-correct-it-also-reflect-2nd-condition-also/26324>\
**Category:** Help Hub\
**Created:** [July 31, 2021, 4:19am UTC](https://community.postman.com/t/i-try-to-validate-login-message-but-password-is-correct-it-also-reflect-2nd-condition-also/26324 "2021-07-31T04:19:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [July 31, 2021, 8:01pm UTC](https://community.postman.com/t/i-try-to-validate-login-message-but-password-is-correct-it-also-reflect-2nd-condition-also/26324/2 "2021-07-31T20:01:03Z")

</div>

This has been superceded by a follow-up topic:

> [@Using if else statement condition for login test](https://community.postman.com/t/using-if-else-statement-condition-for-login-test/26323/):
>
> Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic. Here’s an outline with best practices for making your inquiry. My question: Details (like screenshots): I am using if else statement condition for login test and try to success value should be in true and should be match msg for all different condition in body value let jsonData1 = pm.response.json(), msg = ["Login Successfu…

Therefore, I will close this topic.

---

_[View the full topic](https://community.postman.com/t/i-try-to-validate-login-message-but-password-is-correct-it-also-reflect-2nd-condition-also/26324)._
