fixed remember me implementation so it remembers the checkbox