letting user specify name and access code in the beginning and updating access code functioanlity