added remember to login, generates cookie when checked, cookie gen moved to func

current cookie gen func overwrites old cookie for user. need to fix