port range checking added