adding loginUrl option when login required to take a shot.