split login process for validation code
check in test script