Modified cookie to store username and password and create global variable of current user.