Properly convert ID to a string when logging in