Implemented Code to make "Stay Signed In" Work