Refactored and added tests for js in layout
partials for navbars
create post validations show error divs instead of using alerts