added root_path to navbar
added extension validation to Post model
fixing merge conflict