Updated login method to not use hard coded appID and secret key