added url parsing for authentication check