# Login Page Credentital verification issue

**URL:** <https://forum.inductiveautomation.com/t/login-page-credentital-verification-issue/90147>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 9, 2024, 10:43am UTC](https://forum.inductiveautomation.com/t/login-page-credentital-verification-issue/90147 "2024-05-09T10:43:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivasan\_s](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@srinivasan\_s](https://forum.inductiveautomation.com/u/srinivasan_s)\
**Post date:** [May 9, 2024, 10:43am UTC](https://forum.inductiveautomation.com/t/login-page-credentital-verification-issue/90147/1 "2024-05-09T10:43:04Z")

</div>

I am creating simple login. Here I need to verify the username and password against my CoreIDp i have created in gateway. I have created the script in mouse clicked event in perspective. Below is script.

```
	username=self.getSibling("TextField_Email").props.text
	password=self.getSibling("TextField_Password").props.text
	valid=system.security.validateUser(username, password, Template_user)
	if valid:
		system.perspective.navigate(page = "ForgotPassword")
	else:
		system.gui.errorBox("Incorrect password")

```

But nothing works.Kindly help me with this simple issue i am not aware of !

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [May 9, 2024, 11:05am UTC](https://forum.inductiveautomation.com/t/login-page-credentital-verification-issue/90147/2 "2024-05-09T11:05:10Z")

</div>

> system.perspective.navigate(page = "ForgotPassword")

Its scope perspective

> system.gui.errorBox("Incorrect password")

Its scope vision

I think, **valid** must be **False**. Its trying to execute **else** script but you are running above script in perspective so nothing works.

---

<div class="post-metadata">

**Author:** ![srinivasan\_s](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@srinivasan\_s](https://forum.inductiveautomation.com/u/srinivasan_s)\
**Post date:** [May 13, 2024, 6:58am UTC](https://forum.inductiveautomation.com/t/login-page-credentital-verification-issue/90147/3 "2024-05-13T06:58:41Z")

</div>

Thank you for your reply. Now issue is resolved
