fixed the user resitration authentication but have not fixed sessions for users