Refactored : made a function to clear text boxes