How to avoid entering the same value to different fields