Adding Login

Okay, so I'm attempting to create a tab bar application. I need to create a login though for before the main window. So I was wondering how do I write the code that connects the login fields in the app with the actual web page. I'm fairly new to this so please keep it kind of simple. Thanks.

Original thread: https://forums.imore.com/threads/adding-login.211657/