Very simple way to validate the information entered by the user.