changed get username from cookie