moved foreach loop to index.php, resluting in password return in proper place but still duplicated at top of screen. Still the wrong format.