Valid and invalid user delimiter mysql

how do you limit it so that unregistered users and passes cannot enter the mysql data?