checking https port correctly