Users should be re-directed to Login Page if not logged in.
You should collect Domain,Email& Password from contact to create Authentication Header to perform a GET request on Wello API.
Check this page for more information on creating authentication header
You should perform a simple GET request to make sure your authentication header is valid.
If API returns 401 Access Denied without 200 Success, user login must be considered failed.