fixed registration test and added before filter for the question answer view