# Okta widget throws email and password as separate form for login

**URL:** <https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534>\
**Category:** Questions\
**Created:** [June 9, 2023, 10:43am UTC](https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534 "2023-06-09T10:43:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirannambiar](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kirannambiar](https://devforum.okta.com/u/kirannambiar)\
**Post date:** [June 9, 2023, 10:43am UTC](https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534/1 "2023-06-09T10:43:31Z")

</div>

I am using okta sign in widget and for some reasons it asks to verify the email first and then after clicking the CTA it asks to verify the password. What i want to do is the email and password field should be in a single form, the user fills in both username and password and then he clicks on submit button.

Attaching a screenshot for a reference.

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/7/7dd03cf1dd3e32510caca7f9f9b7a1bb5944cfe4.png)

We want to achieve as attached in the below screenshot, how can we achieve this?

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/8/8d7be74c3133bb3977b542dbfcf0af89f5bb5c88.png)

---

<div class="post-metadata">

**Author:** ![andrew1](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@andrew1](https://devforum.okta.com/u/andrew1)\
**Post date:** [June 9, 2023, 1:20pm UTC](https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534/2 "2023-06-09T13:20:48Z")

</div>

Hi,

If you are on OIE then please have a look at this Knowledge Based article: [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/OIE-tenant-displays-password-field-on-login-page?language=en_US)

1. Login to the admin dashboard and navigate to **Security \>\> Global Session Policy**.
2. Choose the policy that applies to the relevant users and click the **Edit Rule** button to the right of the rule you want to edit.
3. Find the **Establish the user session with** setting and choose one of the following options:

- To display both the username and password fields at the same time choose **A password**

---

<div class="post-metadata">

**Author:** ![kirannambiar](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kirannambiar](https://devforum.okta.com/u/kirannambiar)\
**Post date:** [June 12, 2023, 5:10am UTC](https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534/3 "2023-06-12T05:10:11Z")

</div>

That worked. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [June 13, 2023, 5:10am UTC](https://devforum.okta.com/t/okta-widget-throws-email-and-password-as-separate-form-for-login/24534/4 "2023-06-13T05:10:14Z")

</div>

Closed on June 13, 2023, 5:10am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
