basic AUTH working for register and update