User authentication using firebase

1-I want a user to register, and after the registration, they need to be redirected to another screen. Also, the app needs to look if the user email is already in use.

this should be automatic directly from Firebase Auth

2- If the user wants to log in the next time, then I need the app to have a look and see if the user is already registered and then log them in

For what you need an application to check users who have signed in, you can immediately see from your firebase like this