Minor changes

Added encryption check, don't attempt TLS connection if not using TLS;
fix for default admin name; don't reference variables that aren't set
in edit.php