Registration update

+reg page
+auth class
+reg. is working and setting user_id to session after registration