Improved add_entry function

Add while and conditions if users made mistakes adding infos.