login logout functioning properly