Added backend validation so empty inputs cannot be submitted