Completed login function and render posts