data is now being correctly retrived and displayed on input form