login box conditional