add frontend and make login & posts loading work