changed redirect(2) to redirect(1) in profile