Made form redirect and add to db