Post request not working. Logic is done though.