Added courses scaffold and fixed login/logout