DuplicateCode-Refactoring-Step-3

Step 3: After extracting super class and pulling up the validate
method,to make to mode readable and to avoid long, complicated code we
implemented decompose conditional and extract method.A complex
conditional statement is decomposed and checkLength is used instead of
the complex conditional. Then, complex code under each if statement is
extracted into separate methods like checkAccountDuplication(resp) using
the extract method refractoring.