change flash alert to show error messages
allow nil records for weight and height
refactor downcasing of gender in private method