Data shifted during Serial communication

Serial Input Basics has everything you need.