added sorting to course api, modified course view

corrected course route
removed double id in login view
tinkering with css/less