Prompted user for weight

validated input using function