return type of 'authenticate' method was changed from string to an object instance.