Add identifier to logout
Tests for logging in