Added Logout, duplicate check for creating a user