logging in and switching to lecturer view implemented