Application redirects correctly to index page instead of foster_parent edit page