setting oathaccess to null in signin and implemented logout functionality