I added a decorator to check the logined users.
so logined users cannot go to login and register pages again.
logout, dashboard, profile added to navbar when user logined.
login, register eliminited when user logined.