Returns the user ID if the user exists or null if the user doesn't exist.
<?php username_exists( $username ); ?>
Use username_exists() in your scripts to decide whether the given username exists.
<?php $username = $_POST['username']; if ( username_exists( $username ) ) echo "Username In Use!"; else echo "Username Not In Use!"; ?>
username_exists() is located in