Added Login, Register and Logout features