add cookies support for username