Fixed textbox to be only single lined
Cleaned up filename validation code
Cleaned up filename validation code