added conditions in adviser login