populating forms correctly