Authentication and autherization--validating user and redirecting based on role.