A password creator and validator created in C