It worked but not 100%, I have two collections (Student, Instructor), and the documents are with Auto-ID. I want to specify the two buttons with the database, which means if you are a student and your information is in a collection, you only can log in as Student but you can't log in as Instructor, and the same for the Instructor.