Moved login related code to cc-eng-model