Added 'stay signed in' functionality.