Removed the submitCompleted method and added setLoginMode