added redirect if user did not select a class