code for setup user