add pry. fix login logout.