finished register, login, post, authority, display posts on index page