fixed protect post to redirect to ~/