Adding redirectToAction, also added flash messages