Fixed registration system and added login