Fixed the issues with the front page giving username undefined