Added profilePromise

Fixed redirect bug with callbacks