changed http status to http.StatusFound and add return to function