took out version variable
updated getLoginUrl to accept object and check for no values passed