Added login UI, part of blog UI, refactored tests, refactored posts model