login and redirect as per role