Proper POST function implemented