data validation login logout