fixed valid and invalid for POST and PUT in account