validations to variables were added
it contains all the functions for validations