working on creating elements and validating inputs