login redirects to correct usertype