Minor bugfixes: Check referer host. User is now redirected to /dashboard on login