fix before route to hide user profile