→ This section will give detailed steps on how to authenticate users using passwords for your app.
→ There will be specific codes you would have to implement.
→ Thus we put the method within the IBAction method "registerPressed"
Implement the code.
→ Optional chaining required for both email and password because they are UITextField outlets.