changed render to redirect_to in create action