added redirect and changed flash message to better represent error