Registration and Logout

Updated registration system and logout implementation