Create logout

Added Logout code in "reg" project.