Added remember me, refactored sign in to use cookie instead of session