Changed some Login code and refactored teleportCommand