required login working