save username to the cookies