Add remember me functionality in the core