Value checking

Checks inputted values.