Fixed /register endpoints on index page
Added login_view endpoint
Added appropriate login required flash message category