added cookies for login and remember me on login function