Fixing remember me function