Added logic for a user logging in and out.