Added Parse URL function and authentication method into the helper function when the user enters custom authentication credentials