validate radio buttons and prefil them on edit view