redirecting user to profile page if he doesnt have any courses