login logout validation