Removed unused function check_duplicate.  We use verify_username for duplicate checks.