Prevent users form moving forward base on a condition