# Logging in users with a custom form

**URL:** <https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [May 9, 2022, 6:24pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002 "2022-05-09T18:24:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 9, 2022, 6:24pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/1 "2022-05-09T18:24:17Z")

</div>

Hey there,

I created a custom form because I wanted to style it differently then the default form. I have a username input and password input with a submit button. I looked everywhere and can’t seem to find how to log in the user using the custom submit button. On the default form, it asks what database are the users in but for the custom submit button, I don 't see that option. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 9, 2022, 10:18pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/2 "2022-05-09T22:18:48Z")

</div>

Hey there @mmccray

You gotta go here:

 ![Screen Shot 2022-05-09 at 4.17.35 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/3/b304acfef8c80b2a1f23b6f4258e61ef2b8851c9.png)

Kinda hidden but it’s there my friend 🙂

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 12:25am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/3 "2022-05-10T00:25:18Z")

</div>

Thanks for the response. Yes, I saw the log in option (found it by accident) but was quite confused on how to get this to work. I tried few things changing the options on the Log in options page but was not successful. This log in option doesn’t have the same options as with the default form.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 10, 2022, 12:51am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/4 "2022-05-10T00:51:59Z")

</div>

Can you explain what you’re trying to do? The more detail you provide, the better we can assist.

In general, all a user needs is their email address and password to log in.

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 1:13am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/5 "2022-05-10T01:13:56Z")

</div>

I just figured it out. I deleted what I had in username and password fields and it works just fine, feel kinda silly right now but I originally thought I had to put something in the fields. Thank you for your time and knowledge!!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/e/6/e6ef3230ff86597e941d0be918a95c0324a9313b.png)

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 3:17am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/6 "2022-05-10T03:17:33Z")

</div>

Sooo back again, I changed some styling on the form and now I can’t log in anymore. Getting the same error as when I started. I did delete the default login page because I no longer needed it when I got my custom form to work. I noticed that I didn’t have a username set, just an email and password in the database (not sure how the form was logging me in), changed the login type to email and now I can’t log in at all.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/1/f15abf3a5864477e5595b54d644dd59b6f5a153a.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/f/0feb9fad9819d94bb5f47ae3556a6c51cba2ec37.png)

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [May 10, 2022, 3:30am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/7 "2022-05-10T03:30:15Z")

</div>

Hi @mmccray ,

Those fields should not be empty,  
 ![Screen Shot 2022-05-10 at 10.28.23 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/0/60854cb037db543aacc17ec2d7ed5397936daf63.png)

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 3:48am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/8 "2022-05-10T03:48:30Z")

</div>

Also tried it with the username input and password input…no dice

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/9/b9c47c09d3f5adcfb315ae5fa4a17bb6514efdf3.png)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [May 10, 2022, 3:50am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/9 "2022-05-10T03:50:16Z")

</div>

@mmccray you need to login with the Username? if you are putting Username input to the email field you need to choose Username from Email. Try that and see!

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 3:51am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/10 "2022-05-10T03:51:21Z")

</div>

I just named the input field username but I will change the input name to see if that works…

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 3:55am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/11 "2022-05-10T03:55:52Z")

</div>

I changed the input name to Email, still a no…I’m not sure what I’m doing wrong or if there is a glitch…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/1/516bd6e8c815aa88c461894987e86610eb235243.png)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [May 10, 2022, 4:16am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/12 "2022-05-10T04:16:42Z")

</div>

Does the user’s information that you are entering in the login form are in the User collection?

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 4:23am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/13 "2022-05-10T04:23:56Z")

</div>

Yes…I noticed that since I deleted some screens, the login screen is now been assigned Login and Home screen…When I changed the home screen to another page, now when I click preview, it automatically goes to the Home screen not the login page

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/6/96bb96b989d38ec8d60467ab643228245f9b2313.png)

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 4:27am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/14 "2022-05-10T04:27:21Z")

</div>

Ok, so just created a link from the Home screen back to the Login screen and its still giving me an error invalid username or password. Now, at least I can see the Login screen when I click preview.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [May 10, 2022, 5:13am UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/15 "2022-05-10T05:13:55Z")

</div>

Does that still happens after you delete that Login action and reload your tab and add that Log in action again filling the fields with the inputs?

---

<div class="post-metadata">

**Author:** ![mmccray](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmccray](https://forum.adalo.com/u/mmccray)\
**Post date:** [May 10, 2022, 2:33pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/16 "2022-05-10T14:33:59Z")

</div>

Just tried that (great suggestion) but the error message is still popping up. Even changed the password, still no 😭

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [May 10, 2022, 4:40pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/17 "2022-05-10T16:40:39Z")

</div>

What happens if you change that user’s password or delete that user record and add it again?

---

<div class="post-metadata">

**Author:** ![tbel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tbel/32/11159_2.png) [@tbel](https://forum.adalo.com/u/tbel)\
**Post date:** [September 22, 2022, 12:08pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/18 "2022-09-22T12:08:19Z")

</div>

Hiya, I’m trying to setup a custom login myself, but you’re unable to access the User password in the collection. How are you able to verify the password?

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [September 22, 2022, 4:45pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/19 "2022-09-22T16:45:27Z")

</div>

Hi @tbel,

You mean something like confirm password? You can use a input for password and if the details are not in the dB Adalo gives a error right? ( Can’t remember 🙂 )

Thank you

---

<div class="post-metadata">

**Author:** ![tbel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tbel/32/11159_2.png) [@tbel](https://forum.adalo.com/u/tbel)\
**Post date:** [September 22, 2022, 9:21pm UTC](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002/20 "2022-09-22T21:21:33Z")

</div>

Yeah, right now it doesn’t give you access to verify the built-in Password . This one  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/5/750f591e565b6e2d49b2fdf47173a9d243623f5a.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/e/0efbb9748592650acd4543fa99314d399ff35ccf.png)

[Next page](https://forum.adalo.com/t/logging-in-users-with-a-custom-form/27002.md?page=2)
