Add file validation

This commit adds some simple file validation to the file name form. The
input box won't turn blue until the input has the correct file extension
.yaml. This is basically the only validation it does for names.