added functionality for viewing images that were loaded to posts, logging in, and logging out to create a post