Code Cleanup and Textbox validations