added integer and float types to the templates and provided necessary validation