added redirect to course page after successful registration