registation working and user table updating