Fix bugs on index and user.php, both pages display their data